from django.conf.urls import url

from .views import RegisterView, UsernameCountView, MobileCountView, LoginView

urlpatterns = [
    url(r'^register/$', RegisterView.as_view(), name='register'),
    url(r'^usernames/(?P<username>[a-zA-Z0-9_]{5,20})/count/$', UsernameCountView.as_view(), name='name_count'),
    url(r'^mobiles/(?P<mobile>1[3-9]\d{9})/count/$', MobileCountView.as_view(), name='mobile_count'),
    url(r'^login/$', LoginView.as_view(), name='login'),

]